Conversation
51fa466 to
ed5ccdf
Compare
ed5ccdf to
718eca2
Compare
carlos-lopez-tecnativa
left a comment
There was a problem hiding this comment.
Tested locally with OCA/project#1478.
Please check the CI or reference the PR to solve the issue in the test.
TT56064
web_timeline/static/src/views/timeline/timeline_controller.esm.js
Outdated
Show resolved
Hide resolved
| class TestWebTimeline(HttpCase): | ||
| def test_timeline_arch(self): | ||
| self.browser_js( | ||
| "/web/tests/legacy?mod=web&filter=TimelineView - ArchParser", |
There was a problem hiding this comment.
Is it complicated to convert the tests to the new style?
There was a problem hiding this comment.
not sure about it need to take a look
|
|
||
| def test_timeline_view(self): | ||
| self.browser_js( | ||
| "/web/tests/legacy?mod=web&filter=TimelineView - View", |
There was a problem hiding this comment.
the same here
|
/ocabot migration web_timeline |
d84aced to
cf61ce8
Compare
|
@JasminSForgeFlow any news? |
* Avoid to display all items of group_by model * Remove unnecessary readgroup * Remove dependency on project. Modify module structure. Imporve readme file. * Add setup.py
* [FIX] Correct write when grouped by * Remove blank lines * Minor changes
* Update the vis.js framework to latest stable version (v4.20.1) to add new functionality and save almost 400ko of source code in odoo assets (the vis dev team has isolate the code for timeline widget from the rest of their widgets) * Add the possibility to display events with no duration (instantaneous) as the same time has regular events * Add the possibility to choose between two scroll mode : - zoom in time resolution (default) or - vertical scroll (web browser default behaviour) Signed-off-by: adrien.didenot <adrien.didenot@horanet.com>
…same as base Calendar view) In Odoo calendar view, the attribute date_delay is an alternative to date_stop, to provides the duration of the event instead of its end date. This commit integrate this attribute to the Timeline view, but contrary to the base Calendar view the Timeline view could use both arguments (date_stop and date_delay) simultaneously. Signed-off-by: adrien.didenot <adrien.didenot@horanet.com>
The default window display all the events (aka 'fit'), in case of events spread over the year, the events are invisibles (too small to be readable) Signed-off-by: adrien.didenot <adrien.didenot@horanet.com>
Change the attribute 'default_window' to 'mode' like the Odoo calendar view (to be iso functional)
- Convert Moment.js to Luxon. - Replace Underscore.js with native JavaScript code. - Migrate legacy views to the new system and add an architecture parser to separate logic. - added basic test
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: web-17.0/web-17.0-web_timeline Translate-URL: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_timeline/
Currently translated at 100.0% (16 of 16 strings) Translation: web-17.0/web-17.0-web_timeline Translate-URL: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_timeline/it/
cf61ce8 to
258a5a9
Compare
|
CI is still red. |
It's because of this warning
which is deactivated e3e9b5d |
|
@carlos-lopez-tecnativa do you know if this disabling is still needed? We should find any way of avoiding the red CI, silencing the warning or removing it at all. |
|
@JasminSForgeFlow please include #3169 to test that the XSS issue is resolved. |
…L rendering Before this commit, XSS filtering was disabled, which could introduce potential security risks. This commit adopts a safer approach, similar to PR OCA#2525. After this commit, XSS filtering is re-enabled, and a whitelist of allowed HTML elements is provided.
Done, Thanks |
|
Please include #3171 |
Added |
carlos-lopez-tecnativa
left a comment
There was a problem hiding this comment.
LGTM @CarlosRoca13 @pedrobaeza please review this
CarlosRoca13
left a comment
There was a problem hiding this comment.
/ocabot merge nobump
|
This PR looks fantastic, let's merge it! |
|
This PR has the |
|
Congratulations, your PR was merged at 85adaab. Thanks a lot for contributing to OCA. ❤️ |
Standard Migration
Depends on:
@ForgeFlow